<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
<script>
	//更新排序
	function update_weixin_sort(){
		var data=new Array();
		$("input[name='id']").each(function(index, element) {
            data.push($(this).val()+'_'+$(this).parent().parent().find("input[name='weixin_sort']").val());
        });
		$.post("{:U('doweixin_sort')}",{'sort':data.toString()},function(data){
			if(data=='OK'){
				alert('更新成功');
			}
		});
	}
	
	
	function openuploadwin(url){
		art.dialog.open('{:U('Img/add',array('pid' => $pid))}', {width: 600, height: 400,lock:true,title:'上传图片', ok:function(){
			
			window.location.reload();
		}});
	}
</script>
<style>
	.cateListControl{padding:10px; padding-bottom:30px;}
	.cateListControl a.on{color:#f60; font-weight:bold;}
	.cateListControl a{font-size:16px; padding:5px 10px;}
</style>
  <div class="w790">
    <div class="h"><a href="{:U('add',array('pid' => $pid))}" class="btn btn-info"><i class="glyphicon glyphicon-plus"></i>新建相册</a> | <a href="javascript:;" onclick="openuploadwin('{:U('index')}');" title="上传图片" class="btn btn-info"><i class="glyphicon glyphicon-plus"></i>上传图片</a><gt name="pid" value="0"> | <a href="{:U('index',array('pid' => $returnid))}" class="btn btn-info"><i class="glyphicon glyphicon-circle-arrow-left"></i> 返回上级</a>
</gt></h1>
</div>

    <ul class="imgList">
     <volist name="list" id="vo">
     	<li><a href="{:U('index',array('pid' => $vo['id']))}" title="{$vo.title}"><span><img src="__PUBLIC__/Admin/images/fileBox.jpg" /></span></a>
        
        
        <div class="option" style="bottom:-20px;">
        
        <p style="text-align:center;">{$vo.title}</p>
        </div>
        
        </li>
     </volist>
     
     
     <volist name="imgList" id="vo">
     	<li><a href="{:U('index',array('pid' => $vo['id']))}" title="{$vo.title}"><span><img src="{:getThumbPath($vo['img_url'])}" /></span></a>
        
        
        <div class="option" style="bottom:-20px;">
        
        <p style="text-align:center;">{$vo.title}</p>
        </div>
        
        </li>
     </volist>
     
     
     
     </ul>
    
    
    
    
    
    
   
<div class="pages">
        <div class="controlList fl"><a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="sall();"><i class="glyphicon glyphicon-check"></i> 全选/反选</a> <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="rall();"><i class="glyphicon glyphicon-unchecked"></i> 全不选</a> <a class="btn btn-danger btn-sm" href="javascript:void(0);" onclick="delall();"><i class="glyphicon glyphicon-trash"></i> 删除选中</a>
                
         <form class="fr" style="display:inline;" id="pagesize" action="" method="get">
         <label class="form-inline"> 每页
          <select name="pagesize" onchange="document.getElementById('pagesize').submit();" class="form-control">
            <option 
            <eq name="pagesize" value="10">selected="selected"</eq>
             value="10">10
            </option>
            <option 
            <eq name="pagesize" value="20">selected="selected"</eq>
             value="20">20
            </option>
            <option 
            <eq name="pagesize" value="30">selected="selected"</eq>
             value="30">30
            </option>
            <option 
            <eq name="pagesize" value="50">selected="selected"</eq>
             value="50">50
            </option>
            <option 
            <eq name="pagesize" value="100">selected="selected"</eq>
             value="100">100
            </option>
            <option 
            <eq name="pagesize" value="500">selected="selected"</eq>
             value="500">500
            </option>
          </select>
          条</label>
          <input type="hidden" name="category_id" value="{$category_id}" />
          <input type="hidden" name="keywords" value="{$keywords}" />
        </form>
        <div class="fr">{$pages}</div>
    </div>
  </div>
  <div class="clear"></div>
</div>
</body></html>